import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";


//引入element ui &css
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
//Vue使用element插件
Vue.use(ElementUI, {
	size: "small",
});

Vue.config.productionTip = false;
//引入index.scss 全局样式
import "./assets/css/index.scss";
// 引入iconfont
import "./assets/iconfont/iconfont.css";

//引入过滤器函数
import * as filters from "@/filters/getTime";
//循环注册全局过滤器
Object.keys(filters).forEach((key) => {
	Vue.filter(key, filters[key]);
});
// 引入权限文件、
import './permission';
new Vue({
	store,
	router,
	render: (h) => h(App),
}).$mount("#app");
